package syb.radiation.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class RadiationStoreEntry extends StoreEntity {
    @PropertyValue(alias = "辐射值",description = "辐射值",unit = "W/㎡",icon=IconConstract.Radiat,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private String radiationValue;

    @PropertyValue(alias = "日照时长（日累积）",description = "日照时长（日累积）",unit = "h/day",icon=IconConstract.Other,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private String sunshineDurationDay;
    @PropertyValue(alias = "日照时长（月累积）",description = "日照时长（月累积）",unit = "h/month",icon=IconConstract.Direction,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private String sunshineDurationMonth;

    @PropertyValue(alias = "辐射日累积",description = "辐射日累积",unit = "J/㎡",icon=IconConstract.Direction,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private String accumulatedRadiationDays;

    @PropertyValue(alias = "辐射月积量",description = "辐射月积量",unit = "J/㎡",icon=IconConstract.Direction,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check, commandCode="query", eventType=EventType.Click)
    })
    private String monthlyRadiationAccumulation;

    @Override
    public String toString(){
        StringBuilder builder = new StringBuilder ();
        builder.append ("radiationValue:");builder.append (radiationValue);builder.append (";");
        builder.append ("sunshineDurationDay:");builder.append (sunshineDurationDay);builder.append (";");
        builder.append ("sunshineDurationMonth:");builder.append (sunshineDurationMonth);builder.append (";");
        builder.append ("accumulatedRadiationDays:");builder.append (accumulatedRadiationDays);builder.append (";");
        builder.append ("monthlyRadiationAccumulation:");builder.append (monthlyRadiationAccumulation);builder.append (";");
        return builder.toString ();
    }
}
